package com.leenmvc.core.security.entity.export;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.leenmvc.core.annotation.PrimaryKey;
import com.leenmvc.core.annotation.validator.Exist;
import com.leenmvc.core.security.dao.core.SysRoleUserDao;

import java.util.Date;

public class SysUserExcel {

    @PrimaryKey
    @Exist(classes = {SysRoleUserDao.class}, fields = {"userId"})
    @Excel(name = "主键")
    private Long id;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String username;
    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 姓名
     */
    @Excel(name = "真实姓名")
    private String realName;
    /**
     * 头像
     */
    @Excel(name = "头像地址")
    private String headUrl;


    /**
     * 性别   0：男   1：女    2：保密
     */
    @Excel(name = "性别")
    private Integer gender;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;
    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String mobile;

    /**
     * 用户UUID，用于传入IOThub
     */
    @Excel(name = "UUID")
    private String uuid;

    /**
     * 部门ID
     */
    private Long deptId;


    /**
     * 超级管理员   0：否   1：是
     */
    @Excel(name = "是否为超级用户")
    private Integer superAdmin;

    /**
     * 状态  0：停用   1：正常
     */
    @Excel(name = "状态 0：停用   1：正常")
    private Integer status;

    /**
     * 角色id,绑定角色
     */
    private Long roleId;

    /**
     * 地址信息
     */
    @Excel(name = "地址")
    private String address;

    /**
     * 联系人
     */
    private String linkman;

    /**
     * 职务
     */
    private String duties;

    /**
     * 客户名称
     */
    private String customName;

    /**
     * 更新者
     */
    private Long updater;
    /**
     * 更新时间
     */
    private Date updateDate;

    protected Long creator;

    protected Date createDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Integer getSuperAdmin() {
        return superAdmin;
    }

    public void setSuperAdmin(Integer superAdmin) {
        this.superAdmin = superAdmin;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getDuties() {
        return duties;
    }

    public void setDuties(String duties) {
        this.duties = duties;
    }

    public String getCustomName() {
        return customName;
    }

    public void setCustomName(String customName) {
        this.customName = customName;
    }

    public Long getUpdater() {
        return updater;
    }

    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
